package com.rent.message.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 消息实体类
 */
@Data
@TableName("message")
public class Message implements Serializable {

    private Long id;
    private Long userId;
    private String type; // APPOINTMENT, AUDIT, APPLY
    private String title;
    private String content;
    private Long relatedId;
    private Integer isRead; // 0-未读，1-已读
    private LocalDateTime readTime;
    private LocalDateTime createTime;
}

